package com.hgshop.yudongyang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.config.annotation.Service;

import com.hgshop.yudongyang.dao.CategoryMapper;
import com.hgshop.yudongyang.domain.Category;
import com.hgshop.yudongyang.service.CategoryService;
@Service
public class CategoryServiceImpl implements CategoryService {

	@Resource
	CategoryMapper categoryMapper;

	@Override
	public List<Category> getTree(int i) {
		// TODO Auto-generated method stub
		return categoryMapper.getTree(i);
	}

	@Override
	public void addCategory(Category c) {
		// TODO Auto-generated method stub
		categoryMapper.addCategory(c);
	}

	@Override
	public void delCategory(Category c) {
		// TODO Auto-generated method stub
		categoryMapper.delCategory(c);
	}

	@Override
	public void updateCategory(Category c) {
		// TODO Auto-generated method stub
		categoryMapper.updateCategory(c);
	}
	
	
	
}
